package com.probiz.estoresa.product.web.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.BindException;

import com.probiz.estore.common.model.product.ProductAttGroup;
import com.probiz.estore.core.controller.GenericStoreAdminController;
import com.probiz.estore.product.service.ProductAttGroupManager;

public class ProductAttGroupController extends GenericStoreAdminController<ProductAttGroup> {
    private ProductAttGroupManager productAttGroupManager = null;

    public void setProductAttGroupManager(ProductAttGroupManager inMgr) {
        this.productAttGroupManager = inMgr;
    }

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.GenericController#getEntityName(java.lang.Object)
	 */
	@Override
	protected String getEntityName(ProductAttGroup entity) {
		return entity.getProductAttGroupName();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.BaseController#initController()
	 */
	@Override
	protected void initController() throws Exception {
		mgr = productAttGroupManager;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.controller.GenericController#preSave(javax.servlet.http.HttpServletRequest,
	 *      java.lang.Object, org.springframework.validation.BindException)
	 */
	@Override
	protected void preSave(HttpServletRequest request, ProductAttGroup entity, BindException errors) {
	}

}
